// pages/record/record.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    recordArr:[]
  },
  
  onShow: function () {
    this.loadrecord()
  },

  loadrecord(){
    let access_token = wx.getStorageSync('access_token')
    wx.request({
      url: 'https://retire.wshoto.com/wx/facerecord',
      data: {
        access_token: access_token,
      },
      success: (res) => {
        console.log(res)
        if(res.data.code == 1){
          this.setData({
            recordArr:res.data.list
          })
        }
      }
    })
  },

})